package com.biz.primus.ms.order.dao.po.embeddable;

import com.biz.primus.base.enums.PromotionTypeEnum;
import com.biz.primus.model.order.enums.OrderType;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;

/**
 * 订单促销
 *
 * @author Tiger Feng
 * @date 2017年11月13日
 */
@Data
@Embeddable
public class OrderPromotion {
    /**
     * 促销ID
     */
    private Long promotionId;
    /**
     * 促销名字
     */
    @Column(length = 128)
    private String promotionName;
    /**
     * 促销描述
     */
    @Column(length = 250)
    private String promotionDescription;
    /**
     * 是否支持使用优惠券
     */
    private Boolean promotionAllowCoupon;
    /**
     * 促销类型
     */
    @Enumerated(EnumType.STRING)
    private PromotionTypeEnum promotionType;
}
